package cn.itcast.h_jdbc2;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * Created by 13687 on 2017/2/26.
 */
public class App {
	private ApplicationContext applicationContext=
			new ClassPathXmlApplicationContext("cn/itcast/h_jdbc2/bean.xml");

	@Test
	public void test(){
	UserDao dao = (UserDao) applicationContext.getBean("userDao");
	dao.save();
	}
}
